import request from "@/utils/request";

export function getVoiceBroadcastList(params) {
  return request({
    url: `/core/broadcast/list`,
    method: 'get',
    params
  })
}
export function deleteVoiceBroadcast(ids) {
  return request({
    url: `/core/broadcast/${ids}`,
    method: 'delete',

  })
}
export function addVoiceBroadcast(data) {
  return request({
    url: `/core/broadcast`,
    method: 'post',
    data
  })
}

export function updateVoiceBroadcast(data) {
  return request({
    url: `/core/broadcast`,
    method: 'put',
    data
  })
}
 export function getVoiceBroadcast(id){
  return request({
    url: `/core/broadcast/${id}`,
    method: 'get',
  })
 }

 export function msgSend(data){
  return request({
    url:`/core/broadcast/send`,
    method:'post',
    data :data
  })
 }

export function msgCancel(data){
  return request({
    url:`/core/broadcast/cancel`,
    method:'post',
    data:data
  })
}
